package duoqiao;

import java.util.ArrayList;
import java.util.Collection;

public class Collect1 {
    public static void main(String[] args) {
        //集合里面的一些属性
        Collection<String> c = new ArrayList();
        c.add("a");
        c.add("b");
        c.add("c");
        c.add("d");
        c.add("b");


        c.remove("b");
        /*
        c.remove();
        c.removeOf();filter
        c.removeall();
         */
        System.out.println(c);

        System.out.println(c.contains("d"));

        System.out.println(c.size());

        c.clear();
        System.out.println(c);

        System.out.println(c.isEmpty());
    }
}
